package com.myidis.request;

import com.myidis.entity.RightPermission;

public class PermissionReq {
	private int id;
	private int pid;
	private String name;
	private boolean status;
	
	public PermissionReq() {
	}
	
	public PermissionReq(int id, int pid, String name, boolean status) {
		this.id = id;
		this.pid = pid;
		this.name = name;
		this.status = status;
	}
	
	public PermissionReq(RightPermission right, boolean status) {
		this.id = 0;
		this.pid = right.getId();
		this.name = right.getName();
		this.status = status;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
}
